package cn.legend.travel.destination.main.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


@Data
@Document(indexName = "content_guide_table")
public class GuideVO {
    @TableId
    @Field(type = FieldType.Keyword)
    private Long id;
    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_max_word")
    private String title;
    @Field(type = FieldType.Keyword)
    private String coverUrl;
    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_max_word")
    private String brief;
    @Field(type = FieldType.Keyword)
    private Long authorId;
    @Field(type = FieldType.Keyword)
    private String nickName;
    @Field(type = FieldType.Keyword)
    private String avatar;
    @Field(type = FieldType.Keyword)
    private String destinationName;
    @Field(type = FieldType.Keyword)
    private Long viewCount;
    @Field(type = FieldType.Keyword)
    private Long likeCount;
    @Field(type = FieldType.Keyword)
    private Long commentCount;
    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_max_word")
    private String keywords;
    @Field(type = FieldType.Keyword)
    private String type;
}
